﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace Temperature
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main1()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //set up the model and the controller
            TempModel theModel = new TempModel();
            TempController theController = new TempController(theModel);

            //set up the first view
            TempView farenheitView = new TempView(theController);
            farenheitView.Name = "Farenheit Control";
            farenheitView.SetUnit(TempModel.FARENHEIT);
            farenheitView.SetTemp(0);
            farenheitView.Show();

            //set up the second view
            TempView celsiusView = new TempView(theController);
            celsiusView.Name = "Celsius Control";
            celsiusView.SetUnit(TempModel.CELSIUS);
            celsiusView.SetTemp(0);
            celsiusView.Show();

            //set up the third window


            Application.Run();



        }
    }
}
